﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.Master" AutoEventWireup="true" CodeBehind="CargoCars_List.aspx.cs" Inherits="WebUI.CargoCars.CargoCars_List" %>

<asp:Content ID ="Content1" ContentPlaceHolderID ="ContentPlaceHolder1" runat="server">
   
    车队编号：<asp:TextBox ID="txtCargoCarsSn" runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>车队名称：<asp:TextBox
        ID="txtCargoCarsName" runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>车队电话：<asp:TextBox
            ID="txtTel" runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>车队等级：<asp:TextBox ID="txtCargoCarsGrade"
                runat="server" Width="58px" ForeColor="#404040"></asp:TextBox>
    <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查找" ForeColor="#404040" /><br />
    <div style="width:750px;margin-top:15px;">
    <asp:GridView ID="grvCargoCarsList" runat="server" AutoGenerateColumns="False" OnRowDeleting="grvCargoCarsList_RowDeleting" AllowPaging="True" OnPageIndexChanging="grvCargoCarsList_PageIndexChanging" PageSize="8" BackColor="White" BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4" GridLines="Horizontal" Width="750px">
        <Columns>
            <asp:BoundField DataField="CargoCarsSN" HeaderText="编号" />
            <asp:HyperLinkField DataNavigateUrlFields="CargoCarsSN" DataTextField="CargoCarsName" HeaderText="车队名称"
                NavigateUrl="~/CargoCars/CargoCars_Modify.aspx" DataNavigateUrlFormatString="CargoCars_Modify.aspx?CargoCarsSN={0}" />
            <asp:BoundField DataField="Tel" HeaderText="车队电话" />
            <asp:BoundField DataField="Address" HeaderText="车队地址" />
            <asp:BoundField DataField="CargoCarsGrade" HeaderText="车队等级" />
            <asp:HyperLinkField DataNavigateUrlFields="CargoCarsSN" DataNavigateUrlFormatString="DispatchVehicle.aspx?CargoCarsSN={0}"
                HeaderText="车辆分配" NavigateUrl="~/CargoCars/DispatchVehicle.aspx" Text="车辆分配" />
            <asp:CommandField HeaderText="删除" ShowDeleteButton="True" />
        </Columns>
        <FooterStyle BackColor="White" ForeColor="#333333" />
        <RowStyle BackColor="White" ForeColor="#333333" />
        <SelectedRowStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
        <PagerStyle BackColor="#336666" ForeColor="White" HorizontalAlign="Center" />
        <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
    </asp:GridView>
     <div style="text-align:right; margin-top:10px;">
    <asp:HyperLink ID="hylAddCargoCars" runat="server" NavigateUrl="~/CargoCars/CargoCars_Modify.aspx">增加车队</asp:HyperLink>
    </div></div>
</asp:Content>